Skip to main content

ContinueCreateStack

Description

after the resource stack creation fails, call the ContinueCreateStack interface to recreate the resource stack.

Request Method

POST

Request Path

/apsara/route/ROS/ContinueCreateStack

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
Parameters.N.ParameterKeyBODYstringYesAmountthe name of the template parameter covered. If the name and value of a specific parameter are not specified, ROS will use the value from the last time it was created. The maximum value of n is 200. description only takes effect when Mode is Recreate.
Parameters.N.ParameterValueBODYstringYes12the value of the template parameter covered. The maximum value of n is 200. only takes effect when Mode is Recreate, and the limits of the overwritten template parameters are as follows: cannot cause any Condition value change in the Conditions part of the template, from true to false, or from false to true. Override parameters cannot be referenced by resources that are not recreated.
ModeBODYstringNoRecreatecontinue to create the mode, value: Recreate (default): recreate the following 4 types of resources, and the others are resources that are not recreated: failed resource creation. specifies the resource (RecreatingResources.N) to be recreated. resources that depend on the specified recreated resource (RecreatingResources.N). uncreated resource. RecreatingResources.N, TemplateBody, TemplateURL, and Parameters parameters only take effect in this mode. Ignore: Ignore and discard all resources that failed to be created and uncreated, and directly mark the resource stack as successful. The template content will change.
DryRunBODYbooleanNofalsewhether this request is only checked. Value: true: only check, not actually executed. false (default): it will be actually executed and the resource stack will continue to be created.
TemplateBodyBODYstringNo{ "ROSTemplateFormatVersion": "2015-09-01" }the structure of the template body. The length is 1~524 and 288 bytes. /p> p data-tag = "p" class = "p"> if the length is large, it is recommended to pass the parameters in the request body through HTTP POST + Body Param to avoid the request failure caused by the URL being too long. description you must specify the parameter TemplateBody or TemplateURL, but not at the same time. Only take effect when Mode is Recreate, the template restrictions are as follows: can only modify the Description, Metadata, Resources, and Outputs parts of the template. cannot add or delete Section (the first layer of template content). The Resources part of the template is limited as follows: For resources that are not recreated, neither delete nor modify their template content. For recreated resources, you can delete or modify the template content. new resources can be added.
versionBODYstringNo2016-01-01version of api
TemplateURLBODYstringNooss://ros-template/demothe location of the file containing the template body. The URL must point to the template located in the Web server (HTTP or HTTPS) or Aliyun OSS bucket (for example, oss:// ros/template/demo, oss:// ros/template/demo?RegionId = cn-hangzhou), the maximum template is 524 and 288 bytes. description you must specify the parameter TemplateBody or TemplateURL, but not at the same time. only takes effect when Mode is Recreate, and the template restrictions are the same as TemplateBody.
RamRoleNameBODYstringNotest-roleRAM role name. ROS will play this role to create a resource stack and use the role's credentials to make interface calls on behalf of the user. ROS always uses this role for operations that will take place on the resource stack. As long as the user has the right to operate on the resource stack, even if the user does not have the right to use the role, ROS will use this role to ensure that the role grants minimal permissions. If the user does not specify this value, ROS will use the role previously associated with the resource stack. If no role is available, ROS will use temporary credentials generated from your user credentials. The maximum length of the RAM role name is 64 bytes.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-hangzhouthe region ID to which the resource stack belongs.
StackIdBODYstringYes4a6c9851-3b0f-4f5f-b4ca-a14bf691****resource stack ID.
RecreatingResources.NBODYrepeatlistNoWebServerresources that failed to be created will be recreated. You can specify an additional list of resources that need to be recreated, and ROS will recreate all resources that depend on it.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}